<template>
  <div class="warp">
    <ul class="gerList" v-for="item in props.res" :key="item.id">
      <li class="box">
        <div class="img">
          <!-- <img :src="songle.al.picUrl" alt="" /> -->
        </div>
        <p>
          <div>11:11</div>
          <div>{{ item.ar.map((i:singerMessage) => i.name).join("/") }}</div>
          <a href="#">
            <SvgIcon icon="icon-geren2" class="icon"></SvgIcon>
          </a>
        </p>
      </li>
    </ul>
  </div>
</template>

<script lang="ts">
export default {
  name: "singerRes",
};
</script>

<script lang="ts" setup>
import { singerMessage } from "@/api/model/singer";
import SvgIcon from "@/components/SvgIcon/index.vue";

const props = defineProps<{ res: any }>();

</script>

<style scoped>
.warp {
  width: 100%;
  display: flex;
  /* justify-content: space-between; */
  justify-content: flex-start;
}
.gerList {
  width: 130px;
  display: flex;
  margin-bottom: 30px;
  margin-left: 24px;
}
.box {
  width: 200px;
}

.box p {
  margin-top: 8px;
}
.gerList .img {
  width: 130px;
  height: 130px;
  border: 1px solid #000;
}

.icon {
  position: relative;
  float: right;
  width: 17px;
  height: 18px;
}
</style>
